package org.ne.banksys.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * @author wey
 * @date 2025/6/13 下午10:16 06
 **/


@Data
public class Card implements Serializable {

    private String cardId;
    @NotEmpty
    private String curId;
    @NotEmpty
    private Long savingId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")

    private Timestamp openDate;
    private BigDecimal openMoney;
    private BigDecimal balance;
    @JsonIgnore
    private String pass;
    private String isReportLoss;
    private Long customerId;

}
